package mybatisplusexercise.pojo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@Data
@TableName("t_product")
public class Product {
    private Long id;
    private  String name;
    private  Integer price;
    @Version //表示乐观锁版本号
    private  Integer version;
}
